<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
            list-style: none;
        }
        .nav{
            height: 30px;
            background-color: #f1f1f1;
            padding-left: 200px;
        }
        .nav ul li{
            display: inline;
            line-height: 30px;
            font-size: 12px;
            cursor: pointer;

        }
        .nav ul li:hover{
            color: red;
        }

        .mobile{
            background-image: url(./练习3：仿京东导航/素材/img/tel.png);
            background-repeat: no-repeat;
            padding-left: 20px;
            background-position: 2px -2px;
        }
        .mobile:hover{
            color: red;
            background-position: 2px -27px;
        }
        /* .nav ul li:not(.last):after{
            content: "|";
            padding: 0 5px;
        } */
        .nav ul li:not(.first):before{
            content: "|";
            padding: 0 5px;
        }
    </style>
</head>
<body>
    <!-- <img src="./练习3：仿京东导航/素材/img/tel.png" alt=""> -->
    <div class="nav">
        <span>你好，请登录</span>
        <ul style="display: inline-block;">
            <!-- <li></li> -->
            <li  class="first">
                免费注册
            </li>
            <li>我的订单
                
            </li>
            <li>我的京东
                
            </li>
            <li>京东会员
                
            </li>
            <li>企业采购

            </li>
            <li class="mobile">手机京东

            </li>
            <li>关注京东

            </li>
            <li>客户服务
            </li>
            <li class="last">客户服务</li>
        </ul>
    </div>
</body>
</html>